﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ECube.SEC.Models;
using System.DirectoryServices.AccountManagement;
namespace ECube.SEC.Services
{
    public interface IADAuthenticationUserService
    {
        UserPrincipal Valite(string username, string password);
        bool ChangePassword(string username, string oldPassword, string newPassword);
        UserPrincipal GetUser(string username);
        GroupPrincipal GetGroup(string groupname);
        IEnumerable<UserPrincipal> FindUsers(ADUser  userFilter);
        IEnumerable<GroupPrincipal> FindGroups(ADGroup groupFilter);
    }
}
